
<?php
//display carousel for home
if ($content['Content']['path'] == 'home') {
    echo $this->element('../carousels/show');
} else {
    ?>
    <div id="breadcrumbs"><?php echo $this->Html->link('Home', array('controller' => 'contents', 'action' => 'view', 'home')); ?> 
        <?php
        if ($this->Session->read('Auth.User.role_id') == 1 || $this->Session->read('Auth.User.role_id') == 2) {
            echo " > ";
            echo $this->Html->link('List Contents', array('controller' => 'Contents', 'action' => 'index'));
        }
            ?> > <?php echo $content['Content']['pageName'] ?> 
        </div> <br>
        <?php
    }

//display content
    echo $content['Content']['content'];

//to display map for contact us

    if ($content['Content']['path'] == 'contactus') {
        $map_options = array(
            'id' => 'map_canvas',
            'width' => '400px',
            'height' => '400px',
            'style' => '',
            'zoom' => 15,
            'type' => 'MAP',
            'custom' => null,
            'localize' => false,
            'latitude' => -37.987657,
            'longitude' => 145.220822,
            'address' => '186 Foster Street East, Dandenong 3175',
            'marker' => true,
            'markerTitle' => 'Dandenong Community Advisory Bureu',
            'markerIcon' => 'http://google-maps-icons.googlecode.com/files/home.png',
            'markerShadow' => 'http://google-maps-icons.googlecode.com/files/shadow.png',
            'infoWindow' => true,
            'windowText' => 'My Position'
        );

        echo $this->GoogleMap->map($map_options);
    }
    ?>